import { createSlice } from "@reduxjs/toolkit";

export const homes = createSlice({
  name: "home",
  initialState: {
    name: "北京",
  },
  reducers: {
    setName: (state, action) => {
      state.name = action.payload;
      
    },
  },
});

export const { setName } = homes.actions;
